fixed formatting mistakes and removed unnecessary include
authorPablo Ariño Muñoz <progpabarino@gmail.com>
Wed, 26 Feb 2025 08:11:54 +0000 (09:11 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 26 Feb 2025 11:59:47 +0000 (11:59 +0000)
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
src/gui/generalsettings.cpp
src/gui/generalsettings.ui

index 1307702239e2288819aa708b8230bdeb2ec8b2b6..fa4fa9bd2768b1db6e9ab4819f9abb3b3f674323 100644 (file)
@@ -21,7 +21,6 @@
 #include "owncloudsetupwizard.h"
 #include "accountmanager.h"
 #include "guiutility.h"
-#include <qnamespace.h>
 
 #if defined(BUILD_UPDATER)
 #include "updater/updater.h"
@@ -248,6 +247,7 @@ GeneralSettings::GeneralSettings(QWidget *parent)
     connect(_ui->newExternalStorage, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings);
     connect(_ui->moveFilesToTrashCheckBox, &QAbstractButton::toggled, this, &GeneralSettings::saveMiscSettings);
     connect(_ui->remotePollIntervalSpinBox, &QSpinBox::valueChanged, this, &GeneralSettings::slotRemotePollIntervalChanged);
+    
 #ifndef WITH_CRASHREPORTER
     _ui->crashreporterCheckBox->setVisible(false);
 #endif
@@ -329,8 +329,7 @@ void GeneralSettings::loadMiscSettings()
     _ui->newExternalStorage->setChecked(cfgFile.confirmExternalStorage());
     _ui->monoIconsCheckBox->setChecked(cfgFile.monoIcons());
 
-    ;
-    auto interval = cfgFile.remotePollInterval(); 
+    const auto interval = cfgFile.remotePollInterval(); 
     _ui->remotePollIntervalSpinBox->setValue(static_cast<int>(interval.count() / 1000));  
 }
 
@@ -650,8 +649,8 @@ void GeneralSettings::customizeStyle()
 #endif
 }
 
-
-void GeneralSettings::slotRemotePollIntervalChanged(int seconds) {
+void GeneralSettings::slotRemotePollIntervalChanged(int seconds) 
+{
     if (_currentlyLoading) {
         return;
     }
index 0662b63ac3ae12f1efc8a37adf69dcbe8fc968d7..68b53b4a8cf02a48a74d219946602c1dbbda5441 100644 (file)
          </widget>
         </item>
        </layout>
-      </item>      
+      </item>
       <item>
        <layout class="QHBoxLayout" name="horizontalLayout_trash">
         <item>